<%--
  Created by IntelliJ IDEA.
  User: dong_
  Date: 2021/10/14
  Time: 13:50
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html lang="zxx">

<head>
    <title>login</title>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <link rel="stylesheet" href="/css/style.css" type="text/css" media="all" />
</head>
<body>
<section class="w3l-login">
    <div class="overlay">
        <div class="wrapper">
            <div class="form-section">
                <h3>查询</h3>
                <h6>输入用户名就能查询</h6>
                <form action="${pageContext.request.contextPath }/user/select" method="post" class="signin-form">
                    <div class="form-input">
                        <input type="text" name="name" placeholder="用户名" required="" autofocus>
                    </div>
                    <button type="submit" class="btn btn-primary theme-button mt-4">查询</button>
                    <div class="new-signup">
                        <p name="msg" class="signuplink" style="color:red;">${requestScope.msg}</p>
                    </div>

                    <div class="form-input">
                        <div>名称</div>
                        <input type="text"   value="${requestScope.user.name}">
                    </div>
                    <div class="form-input">
                        <div>密码</div>
                        <input type="text"  value="${requestScope.user.password}">
                    </div>
                    <div class="form-input">
                        <div>电话</div>
                        <input type="text"  value="${requestScope.user.phone}">
                    </div>
                    <div class="form-input">
                    <div>头像</div>
                        <img src="${pageContext.request.contextPath}/user/img?name=${requestScope.user.img}" width="100%" height="150px" alt="无图片"/>
                    </div>
                </form>
                <h6>退出点击下方的退出即可</h6>
                <p class="signup">还没有账户? <a href="${pageContext.request.contextPath }/user/logout" class="signuplink">退出</a></p>
            </div>
        </div>
    </div>
    <div id='stars'></div>
    <div id='stars2'></div>
    <div id='stars3'></div>

    <!-- copyright -->
    <div class="copy-right">
        <p>&copy;版权所有Java2103王浩 <a href="http://w3layouts.com/" target="_blank">W3Layouts</a></p>
    </div>
    <!-- //copyright -->
</section>

<!-- /login form -->
</body>

</html>
